﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Kcpd.aspx.cs" Inherits="Catering.Catering_Page.Kufang.Kcpd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <script src="../../Style/zhezhao.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../Scripts/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .Create_Recipe
        {
            margin-top: 0;
        }
        .Create_Recipe
        {
            border: 1px solid #159aec;
            border-top: none;
            width: 998px;
        }
        .soso_lt
        {
            padding: 5px 0;
        }
        .soso_lt a
        {
            margin-left: 3px;
        }
        .style3
        {
            height: 21px;
        }
        .style5
        {
            height: 26px;
        }
        .div_120 {padding-top:5px; background-color:#e5f1ff;}
        .div_120 ul{width:996px; clear:both;}
        .div_120 li{float:left;height:25px; line-height:25px;margin-left:10px;padding-bottom:5px;}
        .div_120 span{text-align:left;display:-moz-inline-box; display:inline-block; width:60px;}
        .kcpd_report{ text-align:center; background-color:#B8B8B8;}
        .kcpd_report th{ background-color:#e4f0fc; height:24px; font-weight:bold; color:#0760ac; border:1px solid #C2DEF6;}
        .kcpd_report td{ height:28px; border:1px solid #C2DEF6;}

    </style>
    <script type="text/javascript">
        $(document).ready(
        function () {
            HeBingTabRow(2, false);
            HeBingTabRow(1, true);
        });
        function HeBingTabRow(th, isnopre) {
            var g = "";
            var num = 1;
            var s = "";
            var obj = null;
            var tab = $("table.kcpd_report tbody tr");
            tab.each(
                function () {
                    var f = $(this).find("td:nth(" + th + ")");
                    var pre = $(this).find("td:nth(" + (th - 1) + ")");
                    if (f.html() != null) {
                        if (obj == null) {
                            obj = f;
                            num = 1;
                            s = f.html();
                            g = pre.html();
                        }
                        else {
                            if (s == f.html() && (g == pre.html() || isnopre)) {
                                num++;
                                $(obj).attr("rowspan", num);
                                f.remove();
                            }
                            else {
                                obj = f;
                                num = 1;
                                s = f.html();
                                g = pre.html();
                            }
                        }
                    }
                    $(f).attr("bgcolor", "#ffffff");
                }
            );
        }
</script>
</head>
<body>
    <form id="form1" runat="server">   
    <div class="Center_Content" id="div1" style="display: block;">
        <div style="margin:0px auto; background-color: #FFFFFF; position:fixed; top:0px;">
            <div style="width:998px; background-color:#E5F1FF; border:1px solid #C2DEF6; margin:10px 0px;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="40" width="75" align="right">作业区：</td>
                        <td width="110"><asp:DropDownList ID="DDL_zuoyequ" runat="server" Width="106px" AutoPostBack="True" CssClass="select_input_bg" OnSelectedIndexChanged="DDL_zuoyequ_SelectedIndexChanged"> </asp:DropDownList></td>
                        <td width="75" align="right">班组：</td>
                        <td width="110"><asp:DropDownList ID="DDL_banzu" runat="server" Height="22px" 
                                AutoPostBack="True" Width="106px" CssClass="select_input_bg" 
                                onselectedindexchanged="DDL_banzu_SelectedIndexChanged"> </asp:DropDownList></td>
                        <td width="75" align="right">库房：</td>
                        <td width="110"><asp:DropDownList ID="DDL_kufang" runat="server" Height="22px" Width="106px" CssClass="select_input_bg"> </asp:DropDownList></td>
                        <td width="75" align="right">原料大类：</td>
                        <td width="110">
                            <asp:DropDownList ID="DDL_yuanliaodalei" runat="server" Height="22px" Width="106px" CssClass="select_input_bg"
                                OnSelectedIndexChanged="DDL_yuanliaodalei_SelectedIndexChanged" 
                                AppendDataBoundItems="True" AutoPostBack="True"> </asp:DropDownList>
                        </td>
                        <td width="75" align="right">原料细类：</td>
                        <td>
                            <asp:DropDownList ID="DDL_yuanliaoxilei" runat="server" Height="22px"  CssClass="select_input_bg"
                                Width="106px" AppendDataBoundItems="True"> </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="40" width="75" align="right">受控号：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_shoukonghao" Width="106px" ReadOnly="true" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td width="75" align="right">厨师班长：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_chushibanzhang" Width="106px" ReadOnly="true" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td width="75" align="right">管事：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_guanshi" ReadOnly="true" Width="106px" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td width="75" align="right">盘点日期：</td>
                        <td width="110" align="left"><asp:TextBox  onfocus="calendar();" Width="106px" ID="Tex_pandianriqi" runat="server" CssClass="input_bg" Height="22"></asp:TextBox></td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="75" height="40" align="right">库存金额：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_kuchunjine" ReadOnly="true" Width="106px" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td width="75" align="right" style="display:none;">库存数量：</td>
                        <td width="110" align="left" style="display:none;"><asp:TextBox ID="Tex_kucunshuliang" Width="106px" runat="server" CssClass="input_bg" Height="22"></asp:TextBox></td>
                        <td width="75" align="right">上月消耗：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_PreMonth" ReadOnly="true" Width="106px" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td width="75" align="right">本月消耗：</td>
                        <td width="110" align="left"><asp:TextBox ID="Tex_NextMonth" ReadOnly="true" Width="106px" runat="server" CssClass="input_bg" style="background-color:#EAEAEA; background-image:none;" Height="22"></asp:TextBox></td>
                        <td>&nbsp;</td><!--
                        <td width="100" align="right">
                            <asp:Button ID="Btn_IndbInfo" runat="server" Text="同步入库" 
                                Width="83px"  CssClass="input_btn_a" onclick="Btn_IndbInfo_Click" /></td>
                        <td width="100" align="right"><asp:Button ID="Button1" runat="server" Text="同步结余" 
                                Width="83px"  CssClass="input_btn_a" onclick="Button1_Click" /></td>-->
                        <td width="100" align="right"><asp:Button ID="BT_kaishipandian" runat="server" Text="开始盘点" Width="83px"  CssClass="input_btn_a" onclick="BT_kaishipandian_Click" /></td>
                        <td width="100" align="right"><asp:Button ID="BT_daochu" runat="server" Text="导出Excel" Width="83px" CssClass="input_btn_a" onclick="BT_daochu_Click" /></td>
                        <td width="10"></td>
                    </tr>
                </table>
            </div>
            <table width="1000" class="kcpd_report" border="0" cellpadding="0" cellspacing="1" >
                <thead>
                    <tr>
                        <th rowspan="2" width="5%">序号</th>
                        <th rowspan="2" width="12%">原料大类</th>
                        <th rowspan="2" width="12%">原料细类</th>
                        <th rowspan="2" width="10%">品号</th>
                        <th rowspan="2" width="10%">品名</th>
                        <th rowspan="2" width="5%">单位</th>
                        <th colspan="3" width="26%">实际盘存</th>
                        <th colspan="2" width="10%">产品质量状况</th>
                        <th rowspan="2" width="10%">备注</th>
                    </tr>  
                    <tr>
                        <th width="8%">数量</th>
                        <th width="8%">单价</th>
                        <th width="10%">金额</th>
                        <th>合格</th>
                        <th>不合格</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
    <div style="height:142px; clear:both;"></div>
    <div class="Center_Content" id="div2_3" style="display: block">
        <table width="100%" class="kcpd_report" border="0" cellpadding="0" cellspacing="1" id='table_Person'>
            <thead>
                <tr>
                    <th rowspan="2" width="5%">序号</th>
                    <th rowspan="2" width="12%">原料大类</th>
                    <th rowspan="2" width="12%">原料细类</th>
                    <th rowspan="2" width="10%">品号</th>
                    <th rowspan="2" width="10%">品名</th>
                    <th rowspan="2" width="5%">单位</th>
                    <th colspan="3" width="26%">实际盘存</th>
                    <th colspan="2" width="10%">产品质量状况</th>
                    <th rowspan="2" width="10%">备注</th>
                </tr>  
                <tr>
                    <th width="8%">数量</th>
                    <th width="8%">单价</th>
                    <th width="10%">金额</th>
                    <th>合格</th>
                    <th>不合格</th>
                </tr>
            </thead>
            <tbody><%=ViewState["pandian"]%></tbody>
        </table>
        <%-- <div class="div_0207" style="width: 99%" align="center">
            <dl>
                <img src="../../Images/库存盘点.jpg" width="99%" />
            </dl>
        </div>--%>
    </div>
    <div class="footer">
        <strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span></div>


    </form>
</body>
</html>
